/**
 * @description 岗位管理配置界面
 * @author 李艳
 */
import {Tabs} from 'antd';
import React, {Component} from "react";
import ConfigPosition from "./ConfigPosition";
import ConfigFeatureRole from "./ConfigFeatureRole";
import ConfigDataRole from "./ConfigDataRole";

const TabPane = Tabs.TabPane;

class PositionConfigTabsView extends Component {

  render() {
    const {userInfo} = this.props;
    return (
      <Tabs defaultActiveKey="1" className={"transfer-tab-box"}>
        <TabPane tab="配置岗位" key="1">
          <ConfigPosition userId={userInfo.id} organizationInfo={userInfo.organization ? userInfo.organization : {}}/>
        </TabPane>
        <TabPane tab="配置功能角色" key="2">
          <ConfigFeatureRole userId={userInfo.id}/>
        </TabPane>
        <TabPane tab="配置数据角色" key="3">
          <ConfigDataRole userId={userInfo.id}/>
        </TabPane>
      </Tabs>
    )
  }
}

export default PositionConfigTabsView
